package com.ibm.cio.esw;

import io.swagger.annotations.ApiOperation;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;
import springfox.documentation.oas.annotations.EnableOpenApi;

@EnableOpenApi
@RestController
@SpringBootApplication
public class Service2Application {

	public static void main(String[] args) {
		SpringApplication.run(Service2Application.class, args);
	}

	@CrossOrigin
	@ApiOperation("测试数据2。。。")
	@GetMapping("/test")
	public Mono<String> test(){
		return Mono.just("bbbbbb");
	}
}
